package org.znxs.aiCodeGenerate;

import com.mybatisflex.core.keygen.KeyGeneratorFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.znxs.aiCodeGenerate.config.UUIDKeyGenerator;

// 使用redis 需要删除排除加载的类型
@SpringBootApplication
@MapperScan("org.znxs.aiCodeGenerate.mapper")
@EnableScheduling   // 定时任务
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)  // aop 代理
public class ZnxsAiCodeGenerateApplication {

    public static void main(String[] args) {
        // 注册为
        KeyGeneratorFactory.register("myUUID", new UUIDKeyGenerator());
        SpringApplication.run(ZnxsAiCodeGenerateApplication.class, args);
    }

}
